/**
 *  数组的解构
 */
var names = ['a', 'b', 'c']
var [a, b, c] = names
console.log(a, b, c)
//解构构面的元素
var [, d, e] = names
//解构一个元素，后面的元素放到一个新数组中
var [itema, ...newNames] = names
console.log(newNames)
//结构的默认值
var [item1, item2, item3, item4 = 'aaa'] = names
console.log(item4)

